We can write the following code for creating the Same width of the Buttons in Android;
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="Harkawal Button One"/>
<Button
android:layout_width="0dp"
android:layout_weight="10"
android:layout_height="wrap_content"
android:text=" Harkawal Button Two"/>
</LinearLayout>
Solution:
Check if you have installed android studio properly, have enough RAM, check if the Internet Connection is stable,updated gradle etc.
Check if any third party plugin is causing any problem with the android studio, running the studio in old system or low end system.
3. Build time error
Solution:
CHeck if the app is signed by a keystore. Check settings.
4. IDE Error:
Solution:
Check for the updates. If it is updated then,
Go to Build
Then Clean or Rebuild.
No comments:
Post a Comment
Kindly provide your valuable comments. Regards Harkawal