Revision b4ee249e
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/dialogs/RubikDialogAbout.java | ||
---|---|---|
15 | 15 |
import android.content.pm.PackageManager; |
16 | 16 |
import android.content.res.Resources; |
17 | 17 |
import android.net.Uri; |
18 |
import android.util.TypedValue; |
|
18 | 19 |
import android.view.View; |
19 | 20 |
import android.view.Window; |
20 | 21 |
import android.view.WindowManager; |
... | ... | |
105 | 106 |
|
106 | 107 |
public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size) |
107 | 108 |
{ |
108 |
int margin= (int)(mHeight*0.010f);
|
|
109 |
int titleH= (int)(mHeight*0.035f);
|
|
110 |
int padd = (int)(mHeight*0.010f);
|
|
109 |
int width = (int)Math.min( mHeight*0.60f,mWidth*0.90f );
|
|
110 |
int sS= (int)(width*0.043f);
|
|
111 |
int bS= (int)(width*0.060f);
|
|
111 | 112 |
|
112 |
TextView newV = view.findViewById(R.id.new_message); |
|
113 |
TextView shaV = view.findViewById(R.id.about_share_string); |
|
114 |
TextView emaV = view.findViewById(R.id.about_mail_string); |
|
115 |
TextView addV = view.findViewById(R.id.about_mail_address); |
|
116 |
|
|
117 |
TextView newV = view.findViewById(R.id.about_new_message); |
|
113 | 118 |
newV.setText(WHATS_NEW); |
114 |
TextView comV = view.findViewById(R.id.coming_message); |
|
119 |
TextView comV = view.findViewById(R.id.about_coming_message);
|
|
115 | 120 |
comV.setText(WHATS_COMING); |
116 | 121 |
|
117 | 122 |
LinearLayout layoutShare = view.findViewById(R.id.about_share_layout); |
... | ... | |
135 | 140 |
email(act); |
136 | 141 |
} |
137 | 142 |
}); |
143 |
|
|
144 |
shaV.setTextSize(TypedValue.COMPLEX_UNIT_PX, bS); |
|
145 |
emaV.setTextSize(TypedValue.COMPLEX_UNIT_PX, bS); |
|
146 |
addV.setTextSize(TypedValue.COMPLEX_UNIT_PX, sS); |
|
147 |
newV.setTextSize(TypedValue.COMPLEX_UNIT_PX, sS); |
|
148 |
comV.setTextSize(TypedValue.COMPLEX_UNIT_PX, sS); |
|
138 | 149 |
} |
139 | 150 |
|
140 | 151 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Dialog About.