mirror of
https://github.com/TrianguloY/UrlChecker.git
synced 2024-09-19 20:02:16 +02:00
OpenModule and url text outside scrollable area
This commit is contained in:
parent
0db0adc3c9
commit
2b4e02b1ba
@ -13,15 +13,13 @@ import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.trianguloy.urlchecker.modules.BaseModule;
|
||||
import com.trianguloy.urlchecker.modules.OpenModule;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MainDialog extends Activity implements TextWatcher {
|
||||
|
||||
private PackageManager pm;
|
||||
private ComponentName compName;
|
||||
|
||||
public void setUrl(String url) {
|
||||
txt_url.setText(url);
|
||||
//onChangedUrl(); // not needed, the textwatcher does it
|
||||
@ -73,6 +71,12 @@ public class MainDialog extends Activity implements TextWatcher {
|
||||
module.initialize(views);
|
||||
ll_mods.addView(views);
|
||||
}
|
||||
|
||||
// bottom module (open)
|
||||
OpenModule openModule = new OpenModule();
|
||||
openModule.setContext(this);
|
||||
openModule.initialize(findViewById(R.id.open_module));
|
||||
modules.add(openModule);
|
||||
}
|
||||
|
||||
private String getOpenUrl() {
|
||||
|
@ -41,9 +41,6 @@ public class ModuleManager {
|
||||
}
|
||||
}
|
||||
|
||||
// always at the end
|
||||
enabled.add(new OpenModule());
|
||||
|
||||
return enabled;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
@ -7,29 +7,34 @@
|
||||
android:orientation="vertical"
|
||||
tools:context="com.trianguloy.urlchecker.MainDialog">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/url"
|
||||
style="@android:style/Widget.TextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/mods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
<include
|
||||
android:id="@+id/open_module"
|
||||
layout="@layout/module_open"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user