vbea 2 жил өмнө
parent
commit
c2e69214a5

+ 2 - 2
Strides-APP/android/app/version.properties

@@ -1,2 +1,2 @@
-#Mon Sep 11 14:22:23 CST 2023
-VERSION_CODE=315
+#Mon Sep 11 14:51:22 CST 2023
+VERSION_CODE=316

+ 12 - 4
Strides-APP/app/pages/search/ListViewV2.js

@@ -9,12 +9,14 @@ import utils from '../../utils/utils';
 import Provider from '../charge/Provider';
 import ConnectType from './ConnectType';
 import app from '../../../app.json';
+import Button from '../../components/Button';
 
 export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) => {
   if (item.id) {
     return (
-      <Pressable
+      <Button
         style={styles.itemView}
+        viewStyle={styles.itemContent}
         key={index}
         onPress={onPress}
         android_ripple={ripple}>
@@ -77,7 +79,7 @@ export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) =>
             </Pressable> */}
           </View>
         </View>
-      </Pressable>
+      </Button>
     );
   } else {
     return <></>;
@@ -86,10 +88,16 @@ export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) =>
 
 const styles = StyleSheet.create({
   itemView: {
-    padding: 16,
+    borderRadius: 0,
     flexDirection: 'row',
     borderBottomWidth: 1,
-    borderBottomColor: '#eee'
+    borderBottomColor: '#eee',
+    backgroundColor: pageBackground
+  },
+  itemContent: {
+    flex: 1,
+    padding: 16,
+    flexDirection: 'row'
   },
   stationInfo: {
     flex: 1,