Add Ok button to about dialog
This commit is contained in:
parent
00ff0ced07
commit
a62975fe1f
2 changed files with 13 additions and 0 deletions
|
@ -89,6 +89,12 @@
|
||||||
android:singleLine="false"
|
android:singleLine="false"
|
||||||
android:id="@+id/textView2"
|
android:id="@+id/textView2"
|
||||||
android:layout_weight="0.58" />
|
android:layout_weight="0.58" />
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button_about_ok"
|
||||||
|
android:text="Ok"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
|
@ -260,6 +260,13 @@ public class LauncherActivity extends Activity {
|
||||||
dialog.show();
|
dialog.show();
|
||||||
TextView tView6 = (TextView) dialog.findViewById(R.id.textView6);
|
TextView tView6 = (TextView) dialog.findViewById(R.id.textView6);
|
||||||
tView6.setMovementMethod(LinkMovementMethod.getInstance());
|
tView6.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
((Button)dialog.findViewById( R.id.button_about_ok )).setOnClickListener(new View.OnClickListener(){
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
dialog.cancel();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue