Category : android-studio

I’m trying to turn an image view into a button. I want that when the person clicks on the image, that background equal to the button appears. <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/abc_tabs" android:layout_width="24dp" android:layout_height="24dp" android:layout_weight="1" android:tint="@color/blue" android:src="@drawable/ic_tab"/> <ImageView android:id="@+id/abc_add_tabs" android:layout_width="26dp" android:layout_height="26dp" android:layout_weight="1" android:tint="@color/blue" android:src="@drawable/ic_add"/> <ImageView android:id="@+id/abc_settings" android:layout_width="24dp" android:layout_height="24dp" android:tint="@color/blue" android:layout_weight="1" android:src="@drawable/ic_settings"/> </LinearLayout> Source: ..

Read more

I want to get data from Google Sheet, and then display it as a dropdown selections The code below is working well. A working example can be found here https://codepen.io/imccw/pen/NWpEVwj <html> <body onload="loadDate()"> <select id="newDate"> <option value="Choose-a-date">Choose a date</option> <span id="selections"></span></select> <div id="display"></div> </body> </html> function loadDate(){ const url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vS5xmOpa8T6-dHJK8THOnp-25xWWHWUy9g__5tnTpyVyYYiTiY7mtPD0RDB3qVHDKucsjvPSd-C9-Le/pub?output=csv"; fetch(url).then(response => response.text()).then(text => ..

Read more