mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
Add Ok button to about dialog
This commit is contained in:
parent
00ff0ced07
commit
a62975fe1f
@ -89,6 +89,12 @@
|
||||
android:singleLine="false"
|
||||
android:id="@+id/textView2"
|
||||
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>
|
||||
</ScrollView>
|
||||
|
@ -260,6 +260,13 @@ public class LauncherActivity extends Activity {
|
||||
dialog.show();
|
||||
TextView tView6 = (TextView) dialog.findViewById(R.id.textView6);
|
||||
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…
Reference in New Issue
Block a user